﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MiserBlogData.Entities
{
   public class UserLeftBarPK
    {
        public virtual int UserId { set; get; }
        public virtual int LeftBarId { set; get; }
        

        public override bool Equals(object obj)
        {
            if (obj is UserLeftBarPK)
            {
                UserLeftBarPK pk = obj as UserLeftBarPK;
                if (this.UserId == pk.UserId)
                     //&& this.LeftBarId == pk.LeftBarId)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            return false;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
